/* 登录页面样式 */

body {
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: linear-gradient(130deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
    overflow: hidden;
    margin: 0;
    padding: 0;
    color: #FFFFFF;
    position: relative;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.login-content {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    animation: fadeIn 0.8s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.login-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.18);
    background: #fff;
    margin-right: 18px;
    border: 1.5px solid rgba(0,0,0,0.06);
    padding: 4px;
}

.logo-icon { display: none; }

.login-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #FFFFFF;
    letter-spacing: 1px;
}

.header-subtitle {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.7;
    color: #e0e6f0;
    margin: 5px 0 0;
    letter-spacing: 1px;
}

.login-form {
    width: 100%;
    background: rgba(11, 42, 96, 0.85);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25), 0 1.5px 6px 0 rgba(0,0,0,0.10);
    border: 1.5px solid var(--card-border, rgba(255,255,255,0.15));
    padding: 48px 40px 36px 40px;
    position: relative;
    transition: box-shadow 0.3s;
    animation: fadeInUp 0.8s cubic-bezier(.4,2,.6,1);
    overflow: hidden;
}

.login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 2;
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #FFFFFF;
    position: relative;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.7s cubic-bezier(.4,2,.6,1);
    width: 100%;
    display: block;
}

.input-group.focused {
    transform: translateY(-2px);
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
}

.login-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 16px 15px 16px 45px;
    color: #FFFFFF;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    position: relative;
    z-index: 0;
}

.login-input:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 4px 16px 0 #4facfe33;
    background: rgba(255,255,255,0.18);
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.15);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: rgba(70, 120, 220, 0.8);
    border-color: rgba(70, 120, 220, 0.8);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    color: #FFFFFF;
    font-size: 14px;
}

.forgot-password {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.7s cubic-bezier(.4,2,.6,1);
    box-shadow: 0 4px 16px 0 rgba(79,172,254,0.18);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: all 0.6s ease;
}

.login-btn:hover {
    box-shadow: 0 12px 36px 0 rgba(79,172,254,0.38), 0 0 16px 4px #4facfe44;
    transform: translateY(-4px) scale(1.04);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(79, 172, 254, 0.3);
}

.login-footer {
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
    color: #FFFFFF;
    margin-top: 25px;
}

.login-footer p {
    margin: 0;
}

.login-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -1;
}

.decoration-item {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    animation: float 15s infinite ease-in-out;
    animation-delay: var(--delay, 0s);
}

.decoration-item:nth-child(1) {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
}

.decoration-item:nth-child(2) {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: -100px;
}

.decoration-item:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 40%;
    right: 10%;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(30px, -30px) scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-content {
        gap: 20px;
    }
    
    .logo-container {
        margin-bottom: 5px;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .logo-icon i {
        font-size: 26px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .header-subtitle {
        font-size: 14px;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    .form-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .login-input {
        padding: 14px 15px 14px 40px;
        font-size: 15px;
    }
    
    .input-group i {
        font-size: 18px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-message {
    display: none;
    color: #FF3B30;
    background-color: rgba(255, 59, 48, 0.1);
    border-left: 3px solid #FF3B30;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

.error-message.show {
    display: block;
} 